#ifndef WIDGET_H
#define WIDGET_H

#include <QLabel>

namespace Ui {
class Widget;
}

class Widget : public QLabel
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();
    //重写定时器事件
    void timerEvent(QTimerEvent *);
    int id1;  //定时器一的唯一标识
    int id2;  //定时器二的唯一标识

    //重写eventFilter事件
    bool eventFilter(QObject * obj,QEvent * e);
private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
